<?php

namespace app\api\model;

use think\Model;

class Base extends Model
{
    /**
     * 组装图片url地址
     *
     * @param $value
     * @param $data
     * @return string
     */
    protected function prefixImgUrl($value, $data)
    {
        $url = $value;
        if ($data['from'] == 1)
        {
            $url = IMG_URL . $value;
        }
        return $url;
    }
}
